package com.wt.springsamples.security.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.security.access.event.AuthorizationFailureEvent;
import org.springframework.stereotype.Component;

@Component
public class AuthorizationFailureEventListener implements ApplicationListener<AuthorizationFailureEvent> {
    @Override
    public void onApplicationEvent(AuthorizationFailureEvent authorizationFailureEvent) {
        System.out.println("===============》自定义类AuthorizationFailureEventListener《=============================");
    }
}
